package com.company.behavioral.template_method_pattern.concrete_class;

import com.company.behavioral.template_method_pattern.abstract_class.Account;

/**
 * 活期子账户
 * @ClassName CurrentAccount
 * @Author tiezheng.han
 * @Date 2020/9/7 16:00
 **/
public class CurrentAccount extends Account {


    /**
     * 覆盖父类的抽象基本方法
     */
    @Override
    public void calculateInterst() {
        System.out.println("按活期利率计算利息！");
    }
}
